package com.example.votemanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("auctionrecord")
@NoArgsConstructor
@AllArgsConstructor
public class AuctionRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "userId", exist = true)
    private Integer userId;
    @TableField(value = "auctionId", exist = true)
    private Integer auctionId;
    @TableField(value = "auctionTime", exist = true)
    private String auctionTime;
    @TableField(value = "auctionPrice", exist = true)
    private Integer auctionPrice;

    @TableField(exist = false)
    private AuctionUser user;
    @TableField(exist = false)
    private Auction auction;
}
